package frmk.ihm.panel;

import java.awt.BorderLayout;
import java.awt.Color;

import javax.swing.JPanel;

import org.jdesktop.swingx.JXMultiSplitPane;
import org.jdesktop.swingx.multisplitpane.DefaultSplitPaneModel;

@SuppressWarnings("serial")
public class MsPanelSplit extends JPanel {

	/**
	 * Constructeur
	 */
	public MsPanelSplit() {
		super();
		init();
	}

	/**
	 * Initialise les composants
	 */
	private void init() {
		JXMultiSplitPane sp = new JXMultiSplitPane();
        JPanel p1 = new JPanel();
        p1.setBackground(Color.PINK);
        JPanel p2 = new JPanel();
        p2.setBackground(Color.YELLOW);

        sp.setModel(new DefaultSplitPaneModel());
        sp.add(p1, DefaultSplitPaneModel.TOP);
        sp.add(p2, DefaultSplitPaneModel.BOTTOM);

        setLayout(new BorderLayout());
        add(sp);		
	}
	
}
